usbtty: avoid potential NULL pointer dereference
author[email protected] <[email protected]>
Sat, 15 Apr 2017 13:05:46 +0000 (15:05 +0200)
committerTom Rini <[email protected]>
Tue, 18 Apr 2017 14:29:23 +0000 (10:29 -0400)
commit73be5b3fa73e329ad0d9e12db427cd665e1a483c
treec4f4521184f4f43b60fc3be70836e8cd93bec09d
parent6568c731c47bfbb137183f8f745e8168604ea8ab
usbtty: avoid potential NULL pointer dereference

If current_urb is NULL it should not be dereferenced.

The problem was indicated by cppcheck.

Signed-off-by: Heinrich Schuchardt <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
drivers/serial/usbtty.c